<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展运算符</title>
</head>
<script>
    //「...」扩展运算符能将「数组」转换为逗号分隔的「参数列表」
    const PERSONS = ['易烊千玺','王源','王俊凯'] 

    function chunwan() {
        //结果就变成=> '易烊千玺','王源','王俊凯'
        console.log(arguments)
    }
    chunwan(...PERSONS)
    //rest参数的...是放到形参内，扩展运算符的...是放到实参内
</script>

</html>